import SEnum from "@/components/createEnumCom"
const taskTypeCode = {
  needs: "1",
  bugs: "2",
  optimize: "3",
}

export const taskTypeMap = {
  "1": "需求",
  "2": "缺陷",
  "3": "优化",
}

export default defineComponent({
  name: "TaskTYpe",
  setup() {
    const attrs = useAttrs()
    return () => (
      <SEnum enumCode={taskTypeCode} enumMap={taskTypeMap} {...attrs} />
    )
  },
})
